<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "advertisement".
 *
 * @property int $cateId 分类ID
 * @property string $corporateName 公司名称
 * @property string $AdvertisingImages 广告图片
 * @property int $createTime 创建时间
 */
class Advertisement extends \yii\db\ActiveRecord
{


    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'advertisement';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['corporateName', 'AdvertisingImages', 'createTime'], 'required'],
            [['createTime'], 'integer'],
            [['corporateName'], 'string', 'max' => 100],
            [['AdvertisingImages'], 'string', 'max' => 200],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'cateId' => 'Cate ID',
            'corporateName' => 'Corporate Name',
            'AdvertisingImages' => 'Advertising Images',
            'createTime' => 'Create Time',
        ];
    }

}
